package views;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.example.zx.theline.R;

/**
 * Created by zx on 2017/5/9.
 */

public class LzxxItemView extends LinearLayout {
    String s;
    //流转信息 序号
    int j;
    public LzxxItemView(Context context,String s,int j) {
        super(context);
        this.s=s;

        initView();
    }


    public LzxxItemView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    private void initView() {
        View view=inflate(getContext(), R.layout.lzxx_textview,null);
        TextView tv= (TextView) view.findViewById(R.id.tv);
        tv.setText(s);
        this.addView(view);
    }

}
